import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
//导入全局样式
import './styles/index.scss'
//导入vant 组件库
import vant from 'vant'
//导入vant 样式文件
import 'vant/lib/index.css'
const app = createApp(App)
//导入 vant组件库的移动端事件适配
import'@vant/touch-emulator'
//导入自己的插件库
import  Pluagin from '@/utils/Plugin'
app.use(createPinia())
app.use(router)
//ba vant  挂载到app实例身上
app.use(vant)
//挂在自己的插件
app.use(Pluagin)

app.mount('#app')
